package org.csu.jpetstorespringversion.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
//注入依赖
@Repository
//对应数据库中的表名，使用注解的方式
@TableName(value = "supplier")
public class Supplier {
    //定义表的主键值
    @TableId(value = "suppid", type = IdType.AUTO)
    //商品的ID
    private String suppid;
    //小类的ID
    @TableField(value = "name")
    private String name;
    //商品的价格
    @TableField(value = "status")
    private String status;
    //商品的特征一
    @TableField(value = "addr1")
    private String addr1;
    //商品的特征二
    @TableField(value = "addr2")
    private String addr2;
    //商品的特征三
    @TableField(value = "city")
    private String city;
    //商品的特征四
    @TableField(value = "state")
    private String state;
    //商品的特征五
    @TableField(value = "zip")
    private String zip;
    @TableField(value = "phone")
    private String phone;

    public String getSuppid() {
        return suppid;
    }

    public void setSuppid(String suppid) {
        this.suppid = suppid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAddr1() {
        return addr1;
    }

    public void setAddr1(String addr1) {
        this.addr1 = addr1;
    }

    public String getAddr2() {
        return addr2;
    }

    public void setAddr2(String addr2) {
        this.addr2 = addr2;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getZip() {
        return zip;
    }

    public void setZip(String zip) {
        this.zip = zip;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
